package com.seek.eduservice.service;

import com.seek.eduservice.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.seek.eduservice.entity.subject.Chapter;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author wml
 * @since 2022-01-16
 */
public interface EduChapterService extends IService<EduChapter> {

    // 课程大纲列表，根据课程 id 进行查询
    List<Chapter> getChapterAndVideoByCourseId(String courseId);

    // 根据课程 id 删除章节
    void removeByCourseId(String courseId);
}
